<?php
/**
 * Created by PhpStorm.
 * User: wo
 * Date: 2020/4/1
 * Time: 16:50
 */
    $code = $_GET['code'];
    $value = $_GET['value'];

    $redis = new \Redis();
    $redis->connect('127.0.0.1', 6379);
    $expireTime = $redis->get($code);
    if($expireTime == false){
        header('Location: http://www.cloud-moda.com');
    }else{
        header('Location: http://www.cloud-moda.com/promotion/index.php?m=portal&c=index&a=index&code='.$code.'&value='.$value);
    }

